package com.valley.dream.birds.bird.controller;

import com.valley.dream.birds.bird.service.BirdService;
import com.valley.dream.birds.common.entity.Bird;
import com.valley.dream.birds.common.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("bird")
@RestController
public class BirdController {

    @Autowired
    BirdService birdService;

    @RequestMapping("createBird")
    public Result createBird(Bird bird){
        boolean save = birdService.save(bird);
        return Result.ok();
    }

}
